﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class ProduceOption
    {
        #region 属性
        private int _id;
        private int _productOptionCagegoryId;
        private string _name;
        #endregion 

        #region 构造
        public ProduceOption()
        {
            //_id                            = 0;
            _productOptionCagegoryId       = 0;
            _name                          = null;
        }

        public ProduceOption(int productOptionCagegoryId)
        {
            _productOptionCagegoryId       = productOptionCagegoryId;
            _name                          = null;
        }

        public ProduceOption(int productOptionCagegoryId, string name)
        {
            _productOptionCagegoryId       = productOptionCagegoryId;
            _name                          = name;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int ProductOptionCagegoryId
        {
            get { return _productOptionCagegoryId; }
            set { _productOptionCagegoryId = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
